<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>JQueryDom操作</title>
		<link rel="stylesheet" type="text/css" href="css/txt.css" />
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>
		<div id="showDiv">
			<table border="1"></table>
		</div>

	</body>

	<script type="text/javascript">
		$(function() {
			// 创建十行元素，每行两列，显示x 与 姓名-x
			for(var i=0;i<10;i++){
				$("#showDiv>table").append("<tr><td>"+i+"</td><td>姓名-"+i+"</td></tr>")
			}
			
		});
	</script>

</html>